package cn.xsly.ymcc.fegin;


import cn.xsly.ymcc.domain.Login;
import cn.xsly.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFeginFactory.class)
public interface LoginFeginClient {
    @RequestMapping(value = "/login/save", method = RequestMethod.POST)
    public JSONResult save(@RequestBody Login login);
}
